home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 2.iso
/
lprint
/
prnputc.s
< prev
Wrap
Text File
|
1991-10-19
|
756b
|
33 lines
/* prnputc.s : printer library for gcc on FM-TOWNS
*
* (C) Copyright Makoto Sakai
* Nifty: ムンパッパ (MHB02550)
* junet: sakai@sra.co.jp
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation.
*/
.data
.text
.globl _prnputc
/*
(void) prnputc(unsigned char cdata)
*/
.align 4
_prnputc:
movl %edx,%eax
movl 4(%esp),%dl
pushl %eax
loop:
movl $0x0100,%eax
int $0x94
and %ah,%ah
jnz loop
popl %edx
ret